﻿// using System;
using System.Collections.Generic;
using UnityEngine;
public struct MyPoint {
    public int x;
    public int y;
    public MyPoint(int _x, int _y) {
        x = _x;
        y = _y;
    }
}

public enum EnumType_Arrow
{
    TYPE_left,
    TYPE_right, 
    TYPE_up,
    TYPE_down,
}

public static class PublicData
{
    // 常量数据都放在这里
    // public const int kPixelSize = 14;
    // public const int kSpace = 1;
    // 我的1点对应这系统的15像素点
    public const int kPxSize = 15;
    //屏幕大小
    public const int kSreenSize = 40;
    // 系统坐标转换成我的坐标
    public static MyPoint sXY2myXY(Vector3 vector3) {
        return new MyPoint((int)(vector3.x / kPxSize), (int)(vector3.y / kPxSize));
    }
    // 我的坐标转换成系统坐标 
    public static Vector3 myXY2sXY(MyPoint point) {
        return new Vector3(point.x * kPxSize, point.y * kPxSize);
    }
}
